﻿using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace EAS.Content.Items
{
    public class AppreciationQRCode : ModItem
    {
        public override void SetStaticDefaults()
        {
            Item.ResearchUnlockCount = 999;
        }
        public override void SetDefaults()
        {
            Item.createTile = ModContent.TileType<Tiles.AppreciationQRCode>();
            Item.placeStyle = 0;
            Item.width = 20;
            Item.height = 20;
            Item.maxStack = 9999;
            Item.value = 0;
            Item.useStyle = ItemUseStyleID.Swing;
            Item.useTurn = true;
            Item.useAnimation = 15;
            Item.rare = ItemRarityID.Yellow;
            Item.useTime = 10;
            Item.autoReuse = true;
            Item.consumable = true;
        }

        public override void AddRecipes()
        {
            Recipe modRecipe = Recipe.Create(Type, 1);
            modRecipe.AddIngredient(ItemID.Wood, 12);
            modRecipe.AddIngredient(ItemID.BlackString, 1);
            modRecipe.AddTile(TileID.Tables);
            modRecipe.Register();
        }
    }
}
